package com.sun.kamun.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sun.kamun.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//    Integer insertUser(@Param("user")User user);

    User selectByLogin(@Param("username") String username,@Param("password") String password);

//    List<User> selectList(LambdaQueryWrapper<User> wrapper);

    //模糊查询用户列表
//    List<User> findByCondition(@Param("username") String username);
}
